package com.yf.esms.model.vo;

import com.yf.esms.model.entries.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 99698
 */
@Data
@ApiModel(value = "新增文档入参")
public class InsertUserVo {

    @ApiModelProperty(value = "文档数据内容",required = true)
    @NotNull(message = "新增文档数据不为空！")
    private User user;
    @ApiModelProperty(value = "索引名",required = true,example = "user")
    @NotEmpty(message = "索引名不为空！")
    private String indexName;
}
